package com.yanqu.road.server.gameplayer.module.manor.fishPondTaskCondition;

import com.yanqu.road.entity.manor.FishPondTaskData;
import com.yanqu.road.server.gameplayer.GamePlayer;

import java.math.BigInteger;

/**
 * @author ：zfr
 * @date ：2021/10/19 1:53
 */
public class FishingFishCountCondition extends BaseFishPondCondition {

    public FishingFishCountCondition(GamePlayer player, FishPondTaskData fishPondTaskData, Object initArgs, int eventType) {
        super(player, fishPondTaskData, initArgs, eventType);
    }

    @Override
    protected void changeValue(Object object) {
        int num = (int) object;
        setValue(getValue().add(BigInteger.valueOf(num)));
    }
}
